<?php
# http://projects:8081/cdapp-2kt-api/api/activity_military_history.php
include_once './_portal.php';

$start = $post->start ?? date('Y-m-d');
$end = $post->end ?? date('Y-m-d');
$sql = "SELECT * FROM `2kt_activity_history_military` WHERE `execDate` BETWEEN '{$start}' AND '{$end}'";
$result = exec_sql($sql) ?? [];
output(['content' => $result, 'sql' => $sql]);